package com.otherTest.other;

import org.junit.Test;

/**
 * @author Conceit
 * @version 1.0, 2017/2/13
 */
public class TestStringSubstring {
    @Test
    public void StringSubstring() {
        String old = "abcdefg.jpg";
        String news = old.substring(old.indexOf("."), old.length());
        System.out.println(news);
    }
}
